package com.planet.stockanalysis.server.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "stock")
public class Stock implements Serializable{

	private static final long serialVersionUID = -962697748087449891L;
	@Id
	private int id;
	private Date date;
	private Date grabDate;
	/**
	 * 股票代码
	 */
	private StockCode code;
	private String name;
	/**
	 * 成交量
	 */
	private int turnOver;
	/**
	 * 成交额
	 */
	private double volume;
	/**
	 * 涨跌额
	 */
	private double changeAmount;
	/**
	 * 涨跌幅（%）
	 */
	private double changeRange;
	/**
	 * 竞买价
	 */
	private double bidPrice;
	/**
	 * 竞卖价
	 */
	private double askPrice;
	/**
	 * 委比（%）
	 */
	private double commissionRadio;
	/**
	 * 今开盘
	 */
	private double openingPrice;
	/**
	 * 今日最高价
	 */
	private double topPrice;
	/**
	 * 今日最低价
	 */
	private double bottomPrice;
	/**
	 * 昨收盘
	 */
	private double closingPrice;
	/**
	 * 最新价
	 */
	private double newPrice;
	private int buy1Amount;
	private double buy1;
	private int buy2Amount;
	private double buy2;
	private int buy3Amount;
	private double buy3;
	private int buy4Amount;
	private double buy4;
	private int buy5Amount;
	private double buy5;
	private int sell1Amount;
	private double sell1;
	private int sell2Amount;
	private double sell2;
	private int sell3Amount;
	private double sell3;
	private int sell4Amount;
	private double sell4;
	private int sell5Amount;
	private double sell5;

	public int getBuy1Amount() {
		return buy1Amount;
	}
	public void setBuy1Amount(int buy1Amount) {
		this.buy1Amount = buy1Amount;
	}
	public int getBuy2Amount() {
		return buy2Amount;
	}
	public void setBuy2Amount(int buy2Amount) {
		this.buy2Amount = buy2Amount;
	}
	public int getBuy3Amount() {
		return buy3Amount;
	}
	public void setBuy3Amount(int buy3Amount) {
		this.buy3Amount = buy3Amount;
	}
	public int getBuy4Amount() {
		return buy4Amount;
	}
	public void setBuy4Amount(int buy4Amount) {
		this.buy4Amount = buy4Amount;
	}
	public int getBuy5Amount() {
		return buy5Amount;
	}
	public void setBuy5Amount(int buy5Amount) {
		this.buy5Amount = buy5Amount;
	}
	public int getSell1Amount() {
		return sell1Amount;
	}
	public void setSell1Amount(int sell1Amount) {
		this.sell1Amount = sell1Amount;
	}
	public int getSell2Amount() {
		return sell2Amount;
	}
	public void setSell2Amount(int sell2Amount) {
		this.sell2Amount = sell2Amount;
	}
	public int getSell3Amount() {
		return sell3Amount;
	}
	public void setSell3Amount(int sell3Amount) {
		this.sell3Amount = sell3Amount;
	}
	public int getSell4Amount() {
		return sell4Amount;
	}
	public void setSell4Amount(int sell4Amount) {
		this.sell4Amount = sell4Amount;
	}
	public int getSell5Amount() {
		return sell5Amount;
	}
	public void setSell5Amount(int sell5Amount) {
		this.sell5Amount = sell5Amount;
	}
	public double getBuy1() {
		return buy1;
	}
	public void setBuy1(double buy1) {
		this.buy1 = buy1;
	}
	public double getBuy2() {
		return buy2;
	}
	public void setBuy2(double buy2) {
		this.buy2 = buy2;
	}
	public double getBuy3() {
		return buy3;
	}
	public void setBuy3(double buy3) {
		this.buy3 = buy3;
	}
	public double getBuy4() {
		return buy4;
	}
	public void setBuy4(double buy4) {
		this.buy4 = buy4;
	}
	public double getBuy5() {
		return buy5;
	}
	public void setBuy5(double buy5) {
		this.buy5 = buy5;
	}
	public double getSell1() {
		return sell1;
	}
	public void setSell1(double sell1) {
		this.sell1 = sell1;
	}
	public double getSell2() {
		return sell2;
	}
	public void setSell2(double sell2) {
		this.sell2 = sell2;
	}
	public double getSell3() {
		return sell3;
	}
	public void setSell3(double sell3) {
		this.sell3 = sell3;
	}
	public double getSell4() {
		return sell4;
	}
	public void setSell4(double sell4) {
		this.sell4 = sell4;
	}
	public double getSell5() {
		return sell5;
	}
	public void setSell5(double sell5) {
		this.sell5 = sell5;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public StockCode getCode() {
		return code;
	}
	public void setCode(StockCode code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getOpeningPrice() {
		return openingPrice;
	}
	public void setOpeningPrice(double openingPrice) {
		this.openingPrice = openingPrice;
	}
	public double getTopPrice() {
		return topPrice;
	}
	public void setTopPrice(double topPrice) {
		this.topPrice = topPrice;
	}
	public double getBottomPrice() {
		return bottomPrice;
	}
	public void setBottomPrice(double bottomPrice) {
		this.bottomPrice = bottomPrice;
	}
	public double getClosingPrice() {
		return closingPrice;
	}
	public void setClosingPrice(double closingPrice) {
		this.closingPrice = closingPrice;
	}
	public int getTurnOver() {
		return turnOver;
	}
	public void setTurnOver(int turnOver) {
		this.turnOver = turnOver;
	}
	public double getVolume() {
		return volume;
	}
	public void setVolume(double volume) {
		this.volume = volume;
	}
	public double getChangeAmount() {
		return changeAmount;
	}
	public void setChangeAmount(double changeAmount) {
		this.changeAmount = changeAmount;
	}
	public double getChangeRange() {
		return changeRange;
	}
	public void setChangeRange(double changeRange) {
		this.changeRange = changeRange;
	}
	public double getBidPrice() {
		return bidPrice;
	}
	public void setBidPrice(double bidPrice) {
		this.bidPrice = bidPrice;
	}
	public double getAskPrice() {
		return askPrice;
	}
	/**
	 * 竞卖价
	 * @param askPrice
	 */
	public void setAskPrice(double askPrice) {
		this.askPrice = askPrice;
	}
	public double getCommissionRadio() {
		return commissionRadio;
	}
	public void setCommissionRadio(double commissionRadio) {
		this.commissionRadio = commissionRadio;
	}
	public double getNewPrice() {
		return newPrice;
	}
	public void setNewPrice(double newPrice) {
		this.newPrice = newPrice;
	}
	public Date getGrabDate() {
		return grabDate;
	}
	public void setGrabDate(Date grabDate) {
		this.grabDate = grabDate;
	}
}
